Explorer: Fix balance delta display (#28041)

This commit is contained in:
Justin Starry 2022-09-24 13:20:48 +08:00 committed by GitHub
parent 22b966be76
commit e85900e094
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ export function BalanceDelta({
let sols;
if (isSol) {
sols = <SolBalance lamports={delta.toNumber()} />;
sols = <SolBalance lamports={Math.abs(delta.toNumber())} />;
}
if (delta.gt(0)) {