Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
reacto11mecha committed Jun 16, 2024
1 parent fba0bd5 commit 7777703
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/app/(auth)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default async function RootLayout(props: { children: React.ReactNode }) {
name={isLoggedIn.user.name ?? ""}
email={isLoggedIn.user.email ?? ""}
nameFallback={isLoggedIn.user.name?.slice(0, 2) ?? ""}
role={isLoggedIn.user.role}
role={isLoggedIn.user.role!}
>
<TRPCReactProvider>{props.children}</TRPCReactProvider>
</ResizeableNav>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export const columns: ColumnDef<PendingUserList>[] = [
<UpdateRole
isOpen={openUpdate}
toggleOpen={toggleOpen}
currRole={user.role}
currRole={user.role!}
userId={user.id}
/>
</>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/_components/auth/login-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function LoginComponent() {
...values,
});

if (loginResult.error) {
if (loginResult?.error) {
console.log(loginResult);
toast.error("Gagal login", { description: "Email atau password salah!" });

Expand Down

0 comments on commit 7777703

Please sign in to comment.