diff --git a/frontend-react/src/components/plus/SuggestionForm.js b/frontend-react/src/components/plus/SuggestionForm.js index ecafe5d45..2aa2ff6b0 100644 --- a/frontend-react/src/components/plus/SuggestionForm.js +++ b/frontend-react/src/components/plus/SuggestionForm.js @@ -46,6 +46,9 @@ const SuggestionForm = ({ { query: userLean, }, + { + query: suggestions, + }, ], }) diff --git a/frontend-react/src/components/plus/Suggestions.js b/frontend-react/src/components/plus/Suggestions.js index cee52e0ab..df67e07b7 100644 --- a/frontend-react/src/components/plus/Suggestions.js +++ b/frontend-react/src/components/plus/Suggestions.js @@ -148,9 +148,10 @@ const Suggestions = ({ {vouch.username}#{vouch.discriminator}{" "} - Vouched by {vouch.plus.voucher_user.username}# - {vouch.plus.voucher_user.discriminator} to{" "} - {vouch.plus.vouch_status === "ONE" ? "+1" : "+2"} + Vouched to{" "} + {vouch.plus.vouch_status === "ONE" ? "+1" : "+2"} by{" "} + {vouch.plus.voucher_user.username}# + {vouch.plus.voucher_user.discriminator} diff --git a/graphql-schemas/plus.js b/graphql-schemas/plus.js index 7ac5938fe..c75eb4fea 100644 --- a/graphql-schemas/plus.js +++ b/graphql-schemas/plus.js @@ -438,6 +438,10 @@ const resolvers = { await user.save() await vouchingUser.save() + await Suggested.deleteOne({ + discord_id: args.discord_id, + plus_server: args.server, + }) return true },