Skip to content

Commit f991169

Browse files
committed
remove order when returning to audience
1 parent cb1d0dc commit f991169

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/Game.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ const Game = ({
150150
t.asset.onchain_metadata?.name === tooligan.asset.onchain_metadata?.name
151151
? {
152152
...t,
153-
order: tooligan.order || Math.max(...tooligans.map((t) => t.order || 0)) + 1,
153+
order: isAudience
154+
? undefined
155+
: tooligan.order || Math.max(...tooligans.map((t) => t.order || 0)) + 1,
154156
pos: {
155157
x: isAudience ? tooligan.originalPos.x : x,
156158
y: isAudience ? tooligan.originalPos.y : y,

0 commit comments

Comments
 (0)