Skip to content

Commit

Permalink
Fix assetvalue
Browse files Browse the repository at this point in the history
  • Loading branch information
정규철 authored and 정규철 committed Jul 21, 2021
1 parent 3b434f3 commit 413545c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/dashboard/components/AssetItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const AssetItem: React.FC<IAssetItem> = ({
}
<View style={{ marginLeft: 15 }}>
<P1Text label={asset.title} />
<P2Text label={`${ 0.01 <= asset.value ? commaFormatter(Math.floor(asset.value * 100) / 100) : '0.00...' } ${asset.unit}`} />
<P2Text label={`${ 0.01 <= asset.value ? commaFormatter(Math.floor(asset.value * 100) / 100) : asset.value === 0 ? 0 : '0.00...' } ${asset.unit}`} />
</View>
<P1Text
style={{ marginLeft: 'auto' }}
Expand Down

0 comments on commit 413545c

Please sign in to comment.