Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 000ecc2f

Přidáno uživatelem Schwobik před téměř 2 roky(ů)

adding redux for user state management and testing loading images

Zobrazit rozdíly:

src/stores/actions/userThunks.ts
12 12
            }
13 13
        )
14 14
        if (response.status === 200) {
15
            return response.data
15
            return {
16
                username: payload.username,
17
                role: response.data.role
18
            }
16 19
        } else {
17 20
            return Promise.reject(response.data ? response.data : "Login failed")
18 21
        }

Také k dispozici: Unified diff