Skip to content

Commit 618978d

Browse files
committed
fix pen plus sigma
1 parent 142f626 commit 618978d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/lib/project-fetcher-hoc.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ function protobufToJson(buffer) {
217217
}
218218

219219
for (const extensionData in json.extensionData) {
220-
newJson.extensionData[extensionData] = JSON.parse(json.extensionData[extensionData]);
220+
newJson.extensionData[extensionData] = json.extensionData[extensionData];
221221
}
222222

223223
for (const extensionURL in json.extensionURLs) {

src/lib/tw-project-meta-fetcher-hoc.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,14 @@ const TWProjectMetaFetcherHOC = function (WrappedComponent) {
105105
if (
106106
typeof rawData.accepted === 'boolean'
107107
|| typeof rawData.removedsoft === 'boolean'
108-
|| rawData.remix > 0 // checks isRemix and remixId existing at the same time
108+
|| String(rawData.remix) !== '0' // checks isRemix and remixId existing at the same time
109109
|| typeof rawData.tooLarge === 'boolean'
110110
|| authorName
111111
) {
112112
this.props.onSetExtraProjectInfo(
113113
rawData.public && !rawData.softRejected,
114-
rawData.remix > 0,
115-
Number(rawData.remix),
114+
String(rawData.remix) !== '0',
115+
String(rawData.remix),
116116
false,
117117
authorName,
118118
new Date(rawData.lastUpdate),

src/playground/render-interface.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ Interface.propTypes = {
503503
extraProjectInfo: PropTypes.shape({
504504
accepted: PropTypes.bool,
505505
isRemix: PropTypes.bool,
506-
remixId: PropTypes.number,
506+
remixId: PropTypes.string,
507507
tooLarge: PropTypes.bool,
508508
author: PropTypes.string,
509509
releaseDate: PropTypes.shape(Date),

src/reducers/tw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const initialState = {
4848
extraProjectInfo: {
4949
accepted: true,
5050
isRemix: false,
51-
remixId: 0,
51+
remixId: '0',
5252
tooLarge: false,
5353
author: '',
5454
releaseDate: new Date(),

0 commit comments

Comments
 (0)