Skip to content

Commit 401808e

Browse files
author
Ajit Kumar
committed
chore(Review changes from copilot)
1 parent 173ed91 commit 401808e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/pages/sponsor/sponsor.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ export default function Sponsor(onclose) {
183183

184184
async function handlePurchase(productId, title) {
185185
let image;
186+
let result;
186187
const extraFields = [];
187188

188189
if (["silver", "gold", "platinum", "titanium"].includes(productId)) {
@@ -238,7 +239,7 @@ async function handlePurchase(productId, title) {
238239
});
239240
}
240241

241-
const result = await multiPrompt(onlyTitle(title), [
242+
result = await multiPrompt(onlyTitle(title), [
242243
{
243244
placeholder: "Name",
244245
required: true,

src/pages/sponsors/sponsors.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ function SponsorCard({ name, image, website, tier, tagline }) {
161161
attr-role="button"
162162
className={`sponsor-card ${tier}`}
163163
onclick={() => {
164+
if (!website) return;
164165
if (!website.startsWith("http")) {
165166
website = "http://" + website;
166167
}

src/theme/preInstalled.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ moon.popupActiveColor = "rgb(51, 153, 255)";
116116
moon.buttonBackgroundColor = "rgb(0, 173, 181)";
117117
moon.buttonTextColor = "rgb(0, 142, 149)";
118118
moon.buttonActiveColor = "rgb(0, 173, 181)";
119-
bump.preferredEditorTheme = "ace/theme/one_dark";
119+
moon.preferredEditorTheme = "ace/theme/one_dark";
120120

121121
const atticus = createBuiltInTheme("Atticus");
122122
atticus.darkenedPrimaryColor = "rgb(32, 30, 30)";

0 commit comments

Comments
 (0)