Skip to content
This repository was archived by the owner on May 6, 2019. It is now read-only.

Commit 4c34465

Browse files
committed
⚡ Improvments
1 parent 549c730 commit 4c34465

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/pages/wallet.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,7 @@ const Wallet = props => {
6969

7070
const newRaw = []
7171
raw.map(o => {
72-
if (o.event.id === item.event.id && o.flight.id === item.flight.id) {
73-
} else {
74-
newRaw.push(o)
75-
}
72+
return o.event.id === item.event.id && o.flight.id === item.flight.id ? null : newRaw.push(o)
7673
})
7774

7875
setRaw(newRaw)

0 commit comments

Comments
 (0)