Skip to content

Commit

Permalink
Merge pull request #190 from ecency/bugfix/189-error-element-type-is-…
Browse files Browse the repository at this point in the history
…invalid-expected-a-string-for-built-in-components-or-a-classfunction-for-com

Attempted to fix server error
  • Loading branch information
feruzm authored Nov 26, 2024
2 parents 373845b + c45df26 commit 7873ff4
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ecency-vision-next",
"version": "4.0.1",
"version": "4.0.2",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
3 changes: 3 additions & 0 deletions sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
// https://docs.sentry.io/platforms/javascript/guides/nextjs/

import * as Sentry from "@sentry/nextjs";
import appPackage from "./package.json";

Sentry.init({
dsn: "https://8a5c1659d1c2ba3385be28dc7235ce56@o4507985141956608.ingest.de.sentry.io/4507985146609744",

// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
tracesSampleRate: 1,

release: appPackage.version,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false
});
3 changes: 3 additions & 0 deletions sentry.edge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@
// https://docs.sentry.io/platforms/javascript/guides/nextjs/

import * as Sentry from "@sentry/nextjs";
import appPackage from "./package.json";

Sentry.init({
dsn: "https://8a5c1659d1c2ba3385be28dc7235ce56@o4507985141956608.ingest.de.sentry.io/4507985146609744",

// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
tracesSampleRate: 1,

release: appPackage.version,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false
});
2 changes: 2 additions & 0 deletions sentry.server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import * as Sentry from "@sentry/nextjs";
import { nodeProfilingIntegration } from "@sentry/profiling-node";
import appPackage from "./package.json";

Sentry.init({
dsn: "https://8a5c1659d1c2ba3385be28dc7235ce56@o4507985141956608.ingest.de.sentry.io/4507985146609744",
Expand All @@ -13,5 +14,6 @@ Sentry.init({

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
release: appPackage.version,
integrations: [nodeProfilingIntegration()]
});
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export function Preferences() {
[setCurrency]
);

// @ts-ignore
return (
<>
<div className="preferences">
Expand Down
2 changes: 1 addition & 1 deletion src/config/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export namespace EcencyConfigManager {

export const Conditional = memo<ConditionalProps>((props) => {
if (props.condition(CONFIG)) {
return props.children;
return props.children ?? <></>;
}

return props.fallback ?? <></>;
Expand Down
16 changes: 6 additions & 10 deletions src/features/shared/entry-list-content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ export function EntryListContent({

return (
<>
{dataToRender.length > 0 ? (
<>
{dataToRender.map((e, i) => {
{dataToRender.length > 0
? dataToRender.map((e, i) => {
const l = [];

if (i % 4 === 0 && i > 0) {
Expand Down Expand Up @@ -82,13 +81,10 @@ export function EntryListContent({
);
}
return [...l];
})}
</>
) : (
showEmptyPlaceholder && (
<EntryListContentNoData username={username} loading={loading} section={section} />
)
)}
})
: showEmptyPlaceholder && (
<EntryListContentNoData username={username} loading={loading} section={section} />
)}
</>
);
}
Expand Down

0 comments on commit 7873ff4

Please sign in to comment.