Skip to content

Commit

Permalink
fix verify closing menu
Browse files Browse the repository at this point in the history
  • Loading branch information
antheas committed Dec 9, 2024
1 parent b821d11 commit 5da8710
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/model/controller.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,17 @@ const goIn = (s: typeof store) => {
);
break;
case "action":
if (setting.tags?.includes("verify") && !isSel) {
s.dispatch(hhdSlice.actions.select());
if (setting.tags?.includes("verify")) {
if (isSel) {
s.dispatch(hhdSlice.actions.unselect());
s.dispatch(
updateSettingValue({
cred: { token, endpoint: url },
path,
value: true,
})
);
} else s.dispatch(hhdSlice.actions.select());
} else {
s.dispatch(
updateSettingValue({
Expand Down

0 comments on commit 5da8710

Please sign in to comment.