Skip to content

Commit

Permalink
bug: cannot customize without hitting generate
Browse files Browse the repository at this point in the history
  • Loading branch information
aeltorio committed Jun 29, 2024
1 parent 0ba039e commit 3a08f69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const tabs = [
}
]

const defaultData = 'https://lesailesdumontblanc.com'
//const defaultData = 'https://lesailesdumontblanc.com'
const embeddedLogos = [
{ path: '/admb.svg', label: 'Mini Admb light blue' },
{ path: '/admb-navy.svg', label: 'Mini Admb navy blue' },
Expand Down Expand Up @@ -201,7 +201,6 @@ function App() {
useEffect(() => {
const image = options.removeBrand ? '' : options.image
qrCode.update({
data: defaultData,
qrOptions: {
errorCorrectionLevel: options.errorCorrectionLevel,
},
Expand Down
2 changes: 1 addition & 1 deletion src/Context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface ProviderProps {
}

const qrCode = new QRCodeStyling({
data: window.location.origin,
data: 'https://lesailesdumontblanc.com',
shape: 'square',
image: `${window.location.origin}/scanme.svg`,

Expand Down

0 comments on commit 3a08f69

Please sign in to comment.