aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-02 19:19:16 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-02 19:19:16 -0700
commit9ac0392dd839f6cb7669ca4a611cdf7be5bcbdd3 (patch)
treea9e89f0558f131c5f06a46c6282383709e16f53e /modern/src
parent76e3a4189f282afc391a948a9a818157df99de97 (diff)
downloadtrackermap-web-9ac0392dd839f6cb7669ca4a611cdf7be5bcbdd3.tar.gz
trackermap-web-9ac0392dd839f6cb7669ca4a611cdf7be5bcbdd3.tar.bz2
trackermap-web-9ac0392dd839f6cb7669ca4a611cdf7be5bcbdd3.zip
Fix style
Diffstat (limited to 'modern/src')
-rw-r--r--modern/src/components/PositionValue.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/modern/src/components/PositionValue.js b/modern/src/components/PositionValue.js
index 9127ecf4..4edfb416 100644
--- a/modern/src/components/PositionValue.js
+++ b/modern/src/components/PositionValue.js
@@ -68,12 +68,10 @@ const PositionValue = ({ position, property, attribute }) => {
if (property === 'address') {
if (address) {
return (<>{address}</>);
- } else {
- return (<Link onClick={showAddress}>{t('sharedShowAddress')}</Link>)
}
- } else {
- return (<>{formatValue(value)}</>);
+ return (<Link onClick={showAddress}>{t('sharedShowAddress')}</Link>);
}
+ return (<>{formatValue(value)}</>);
};
export default PositionValue;