X-Git-Url: http://these/git/?a=blobdiff_plain;f=src%2Fshared%2Fcomponents%2Fperson%2Fregistration-applications.tsx;h=fbf5f4663637d143b4661c7dd7a0a7b02f680d41;hb=dd42bc2a3dc75a33d20bb5b2f9dfbbfb7e12b153;hp=757170f833f801a503e33d5ce41ea21ec267c55c;hpb=908b7c5bb121add77b1ab9cf6fccc764053c2ea5;p=lemmy-ui.git diff --git a/src/shared/components/person/registration-applications.tsx b/src/shared/components/person/registration-applications.tsx index 757170f..fbf5f46 100644 --- a/src/shared/components/person/registration-applications.tsx +++ b/src/shared/components/person/registration-applications.tsx @@ -220,7 +220,7 @@ export class RegistrationApplications extends Component< } async refetch() { - const unread_only = this.state.unreadOrAll == UnreadOrAll.Unread; + const unread_only = this.state.unreadOrAll === UnreadOrAll.Unread; this.setState({ appsRes: { state: "loading" }, }); @@ -239,7 +239,7 @@ export class RegistrationApplications extends Component< form ); this.setState(s => { - if (s.appsRes.state == "success" && approveRes.state == "success") { + if (s.appsRes.state === "success" && approveRes.state === "success") { s.appsRes.data.registration_applications = editRegistrationApplication( approveRes.data.registration_application, s.appsRes.data.registration_applications