Skip to content

Commit af29641

Browse files
committed
Normalize addresses before compare
1 parent 58cdca9 commit af29641

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/hyperdrive-trading/src/ui/portfolio/longs/usePortfolioLongsSnapshotData.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ export function usePortfolioLongsSnapshotData({
3737

3838
await Promise.all(
3939
POSITIONS_SNAPSHOT.longs.map(async (long) => {
40-
if (long.accountAddress !== account) {
40+
if (
41+
long.accountAddress.toLowerCase() !== account.toLowerCase()
42+
) {
4143
return;
4244
}
4345

0 commit comments

Comments
 (0)