Skip to content

Commit

Permalink
fix: remove enble sphinx that prompt authorization (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobi-bams authored Nov 2, 2023
1 parent c95c5dd commit b106413
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 16 deletions.
26 changes: 21 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,17 @@
"lint": "eslint src --max-warnings 24"
},
"eslintConfig": {
"extends": ["react-app", "react-app/jest"]
"extends": [
"react-app",
"react-app/jest"
]
},
"jest": {
"collectCoverage": true,
"collectCoverageFrom": ["./src/**/*.js", "./src/**/*.ts"],
"collectCoverageFrom": [
"./src/**/*.js",
"./src/**/*.ts"
],
"coverageThreshold": {
"global": {
"lines": 0
Expand All @@ -115,8 +121,16 @@
}
},
"browserslist": {
"production": [">0.2%", "not dead", "not op_mini all"],
"development": ["last 1 chrome version", "last 1 firefox version", "last 1 safari version"]
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"resolutions": {
"react-error-overlay": "6.0.9"
Expand Down Expand Up @@ -182,7 +196,9 @@
"node": ">=16.0.0"
},
"nyc": {
"reporter": ["html"]
"reporter": [
"html"
]
},
"coverage": {
"min": 30
Expand Down
2 changes: 1 addition & 1 deletion src/components/App/SideBar/Relevance/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Button } from '@mui/material'
import { useCallback, useMemo, useRef, useState } from 'react'
import styled from 'styled-components'
import { ScrollView } from '~/components/ScrollView'
import { Flex } from '~/components/common/Flex'
import { ScrollView } from '~/components/ScrollView'
import { useAppStore } from '~/stores/useAppStore'
import { useDataStore, useFilteredNodes } from '~/stores/useDataStore'
import { NodeExtended } from '~/types'
Expand Down
10 changes: 0 additions & 10 deletions src/utils/relayHelper/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@ import { executeIfProd } from '../tests'
export const saveConsumedContent = async (selectedNode: Node | null) => {
// skipping this for end to end test because it requires a sphinx-relay to be connected
await executeIfProd(async () => {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const res = await sphinx.enable(true)

if (!res) {
console.error('Sphinx enable failed, means no pubkey and no budget (including budget of 0)')

return
}

try {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
Expand Down

0 comments on commit b106413

Please sign in to comment.