]> Untitled Git - lemmy-ui.git/commitdiff
Fix missing deny button. Fixes #723 (#728)
authorDessalines <dessalines@users.noreply.github.com>
Sat, 30 Jul 2022 03:37:48 +0000 (23:37 -0400)
committerGitHub <noreply@github.com>
Sat, 30 Jul 2022 03:37:48 +0000 (23:37 -0400)
src/shared/components/common/registration-application.tsx

index 36875b85db8b5a799778fc5e55f6551f82ce9282..f3c2cf523ddc142b414c6e2a05e8eb26ab49c478 100644 (file)
@@ -104,7 +104,7 @@ export class RegistrationApplication extends Component<
             </div>
           </div>
         )}
-        {(!ra.admin_id || (ra.admin_id && !accepted)) && (
+        {(ra.admin_id.isNone() || (ra.admin_id.isSome() && !accepted)) && (
           <button
             className="btn btn-secondary mr-2 my-2"
             onClick={linkEvent(this, this.handleApprove)}
@@ -113,7 +113,7 @@ export class RegistrationApplication extends Component<
             {i18n.t("approve")}
           </button>
         )}
-        {(!ra.admin_id || (ra.admin_id && accepted)) && (
+        {(ra.admin_id.isNone() || (ra.admin_id.isSome() && accepted)) && (
           <button
             className="btn btn-secondary mr-2"
             onClick={linkEvent(this, this.handleDeny)}