createqr
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import React, { useContext, useState } from 'react'
|
||||
import { Link } from 'react-router-dom';
|
||||
import { Axios, ResponseT, UserCtx, UserCtxT } from '../context/UserContext';
|
||||
import CreateQr from '../services/CreateQr';
|
||||
import Img from './Img';
|
||||
import './Profil.css';
|
||||
|
||||
@ -30,7 +31,14 @@ function Profil()
|
||||
email: resDog.data.data.email,
|
||||
name: resDog.data.data.name,
|
||||
phone: resDog.data.data.phone
|
||||
});
|
||||
});
|
||||
if(resDog.data.data.qr_code === null)
|
||||
{
|
||||
// qrcode generieren und in der Datenbank speichern
|
||||
CreateQr({qr_id: user.qr_id});
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
.catch((err) => console.error(err));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user