0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Fix unauth error

This commit is contained in:
e.baidakova 2022-10-27 22:57:11 +04:00
parent 2e517b6744
commit 3e97e47c39

View file

@ -197,9 +197,9 @@ async function sendFeedback({siteUrl, uuid, postId, score}) {
await ghostApi.feedback.add({uuid, postId, score});
}
const LoadingFeedbackView = ({action}) => {
const LoadingFeedbackView = ({action, score}) => {
useEffect(() => {
action();
action(score);
});
return <LoadingPage/>;
@ -272,7 +272,7 @@ export default function FeedbackPage() {
return (<ConfirmDialog onConfirm={onConfirm} loading={loading} initialScore={score} />);
} else {
if (loading) {
return <LoadingFeedbackView action={doSendFeedback} />;
return <LoadingFeedbackView action={doSendFeedback} score={score} />;
}
}