Skip to content

Commit

Permalink
fix pen plus sigma
Browse files Browse the repository at this point in the history
  • Loading branch information
Ianyourgod committed Nov 15, 2024
1 parent 142f626 commit 618978d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/lib/project-fetcher-hoc.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ function protobufToJson(buffer) {
}

for (const extensionData in json.extensionData) {
newJson.extensionData[extensionData] = JSON.parse(json.extensionData[extensionData]);
newJson.extensionData[extensionData] = json.extensionData[extensionData];
}

for (const extensionURL in json.extensionURLs) {
Expand Down
6 changes: 3 additions & 3 deletions src/lib/tw-project-meta-fetcher-hoc.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ const TWProjectMetaFetcherHOC = function (WrappedComponent) {
if (
typeof rawData.accepted === 'boolean'
|| typeof rawData.removedsoft === 'boolean'
|| rawData.remix > 0 // checks isRemix and remixId existing at the same time
|| String(rawData.remix) !== '0' // checks isRemix and remixId existing at the same time
|| typeof rawData.tooLarge === 'boolean'
|| authorName
) {
this.props.onSetExtraProjectInfo(
rawData.public && !rawData.softRejected,
rawData.remix > 0,
Number(rawData.remix),
String(rawData.remix) !== '0',
String(rawData.remix),
false,
authorName,
new Date(rawData.lastUpdate),
Expand Down
2 changes: 1 addition & 1 deletion src/playground/render-interface.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ Interface.propTypes = {
extraProjectInfo: PropTypes.shape({
accepted: PropTypes.bool,
isRemix: PropTypes.bool,
remixId: PropTypes.number,
remixId: PropTypes.string,
tooLarge: PropTypes.bool,
author: PropTypes.string,
releaseDate: PropTypes.shape(Date),
Expand Down
2 changes: 1 addition & 1 deletion src/reducers/tw.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const initialState = {
extraProjectInfo: {
accepted: true,
isRemix: false,
remixId: 0,
remixId: '0',
tooLarge: false,
author: '',
releaseDate: new Date(),
Expand Down

0 comments on commit 618978d

Please sign in to comment.