Fix missing deny button. Fixes #723 (#728)

This commit is contained in:
Dessalines 2022-07-29 23:37:48 -04:00 committed by GitHub
parent 2afcdf0759
commit 5b682271ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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)}