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:
parent
2e517b6744
commit
3e97e47c39
1 changed files with 3 additions and 3 deletions
|
@ -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} />;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue