mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-07-22 20:26:50 +00:00
fix permission checkbox
This commit is contained in:
10
src/App.tsx
10
src/App.tsx
@@ -609,7 +609,7 @@ function App() {
|
||||
try {
|
||||
|
||||
await showQortalRequest(message?.payload);
|
||||
if (message?.payload?.checkbox1) {
|
||||
if (qortalRequestCheckbox1Ref.current) {
|
||||
|
||||
sendResponse({
|
||||
accepted: true,
|
||||
@@ -631,6 +631,14 @@ function App() {
|
||||
|
||||
await showQortalRequestExtension(message?.payload);
|
||||
|
||||
if (qortalRequestCheckbox1Ref.current) {
|
||||
|
||||
sendResponse({
|
||||
accepted: true,
|
||||
checkbox1: qortalRequestCheckbox1Ref.current,
|
||||
});
|
||||
return;
|
||||
}
|
||||
sendResponse({ accepted: true });
|
||||
} catch (error) {
|
||||
sendResponse({ accepted: false });
|
||||
|
Reference in New Issue
Block a user