Skip to content

Commit 715b9e7

Browse files
committed
fix: fix action switch statement for ladder dialogues
1 parent 147a1a1 commit 715b9e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins/objects/ladders/ladder.plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ export const action: objectInteractionActionHandler = (details) => {
2121
]))
2222
.then(d => {
2323
d.close();
24-
switch (d._action.data) {
24+
switch (d.action) {
2525
case 1:
2626
case 2:
27-
action({ ...details, option: `climb-${(d._action.data === 1 ? 'up' : 'down')}` });
27+
action({ ...details, option: `climb-${(d.action === 1 ? 'up' : 'down')}` });
2828
return;
2929
}
3030
});

0 commit comments

Comments
 (0)