Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 2d3a4e2b

Přidáno uživatelem Michal Schwob před asi 2 roky(ů)

Fixed registering a closing the dialog after success
re #9627

Zobrazit rozdíly:

frontend/src/features/Auth/RegisterDialog.tsx
15 15
import { RootState } from '../redux/store'
16 16
import { resetLoggingIn } from './userSlice'
17 17
import { Box } from '@mui/system'
18
import {unwrapResult} from "@reduxjs/toolkit"
18 19

  
19 20
export interface RegisterDialogProps {
20 21
    maxWidth?: DialogProps['maxWidth']
......
45 46
        },
46 47
        validationSchema,
47 48
        onSubmit: () => {
48
            dispatch(
49
            const response = dispatch(
49 50
                register({
50
                    username: formik.values.username,
51
                    name: formik.values.username,
51 52
                    passwords: {
52 53
                        password: formik.values.password,
53 54
                        confirmationPassword: formik.values.confirmationPassword,
......
60 61
                    email: formik.values.email,
61 62
                })
62 63
            )
64

  
63 65
        },
64 66
    })
65 67

  

Také k dispozici: Unified diff