diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-02 19:19:16 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-02 19:19:16 -0700 |
commit | 9ac0392dd839f6cb7669ca4a611cdf7be5bcbdd3 (patch) | |
tree | a9e89f0558f131c5f06a46c6282383709e16f53e /modern | |
parent | 76e3a4189f282afc391a948a9a818157df99de97 (diff) | |
download | trackermap-web-9ac0392dd839f6cb7669ca4a611cdf7be5bcbdd3.tar.gz trackermap-web-9ac0392dd839f6cb7669ca4a611cdf7be5bcbdd3.tar.bz2 trackermap-web-9ac0392dd839f6cb7669ca4a611cdf7be5bcbdd3.zip |
Fix style
Diffstat (limited to 'modern')
-rw-r--r-- | modern/src/components/PositionValue.js | 6 |
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; |