Skip to content

Commit

Permalink
.body whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
harryob committed Apr 25, 2024
1 parent ceb3bca commit ef701b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/stickybanMatch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const Whitelist = (props: { ckey: string }) => {
setOpen(false);
if (value) {
global?.updateAndShowToast(
`Whitelisted ${ckey} against ${value} stickybans.`
`Whitelisted ${ckey} against ${value.body} stickybans.`
);
} else {
global?.updateAndShowToast(`No stickybans lifted for ${ckey}.`);
Expand Down
2 changes: 1 addition & 1 deletion src/components/userLookup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ const AddNote = (props: { ckey: string }) => {
}),
}).then((response) => {
refetch?.updateUser(ckey);
if (response) {
if (response.body) {
global?.updateAndShowToast(`Added note to ${ckey}.`);
} else {
global?.updateAndShowToast(`Failed to add note.`);
Expand Down

0 comments on commit ef701b2

Please sign in to comment.