use constants instead of hard coding:

This commit is contained in:
Peter Clement 2023-08-29 14:45:42 +01:00
parent 8b8bce186c
commit a7241487fd
1 changed files with 3 additions and 3 deletions

View File

@ -44,8 +44,8 @@
let email
let error
let form
let creationRoleType = "appUser"
let creationAccessType = "BASIC"
let creationRoleType = BudibaseRoles.AppUser
let creationAccessType = Constants.Roles.BASIC
let appInvites = []
let filteredInvites = []
@ -770,7 +770,7 @@
)}
label="Role"
/>
{#if creationRoleType !== "ADMIN"}
{#if creationRoleType !== Constants.Roles.ADMIN}
<RoleSelect
placeholder={false}
bind:value={creationAccessType}